package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 车辆管理对象 car_info
 *
 * @author trip
 * @date 2024-09-10
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("car_info")
public class CarInfo extends BaseEntity implements Serializable{
private static final long serialVersionUID = 1L;

    /** 车辆信息id */
            @Excel(name = "车辆信息id")
        @TableId(value = "car_info_id" ,type = IdType.AUTO)
        private Long carInfoId;
    /** 司机id */
            @Excel(name = "司机id")
        private Long driverId;
    /** 车牌号 */
            @Excel(name = "车牌号")
            @NotBlank(message = "车牌号不能为空")
        private String licensePlate;
    /** 颜色 */
            @Excel(name = "颜色")
        private String color;
    /** 车型号/品牌 */
            @Excel(name = "车型号/品牌")
        private String brand;
    /** 座位数 */
            @Excel(name = "座位数")
        private Long seat;
    /** 车辆照片 */
            @Excel(name = "车辆照片")
        private String photo;
    /** 状态（0正常 1停用） */
            @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
        private String status;
    /** 删除标志（0代表存在 2代表删除） */
        @TableLogic
        private String delFlag;
        }


